html, body { 
    height: 100%; 
    margin: 0;
  }
  
  body { 
    background: linear-gradient(135deg, #001f3f 0%, #003366 50%, #004d7a 100%);
    color: #fff; 
    font-family: 'EB Garamond', serif;
    overflow-x: hidden;
  }
  
  /* Patrón de fondo decorativo */
  body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 20% 50%, rgba(0, 153, 204, 0.05) 0%, transparent 50%),
                      radial-gradient(circle at 80% 80%, rgba(0, 180, 230, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
  }
  
  /* Escenario centrado con más espacio */
  .demo-stage {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px 50px;
    position: relative;
    z-index: 1;
  }
  
  /* Título de la demostración */
  .demo-stage::before {
    content: 'Vista Previa de Aplicación';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 700;
    background: linear-gradient(135deg, #0099cc, #00b4e6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.5px;
  }
  
  /* Envolvente mejorado */
  .device-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    width: 100%;
    max-width: 450px;
  }
  
  /* Controles rediseñados - ahora fuera del dispositivo */
  .demo-controls {
    position: relative;
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px 20px;
    background: rgba(0, 51, 102, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 153, 204, 0.3);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(0, 180, 230, 0.1) inset;
    z-index: 10;
  }
  
  /* Botones mejorados */
  .btn {
    border: 1px solid rgba(0, 153, 204, 0.4);
    padding: 10px 18px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(0, 153, 204, 0.2), rgba(0, 180, 230, 0.15));
    color: #fff;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    font-family: 'EB Garamond', serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
  }
  
  .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 180, 230, 0.2), transparent);
    transition: left 0.5s;
  }
  
  .btn:hover::before {
    left: 100%;
  }
  
  .btn:hover { 
    background: linear-gradient(135deg, rgba(0, 153, 204, 0.35), rgba(0, 180, 230, 0.25));
    border-color: rgba(0, 153, 204, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 153, 204, 0.4);
  }
  
  .btn:active {
    transform: translateY(0);
  }
  
  .zoom-label { 
    min-width: 52px; 
    text-align: center; 
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    color: #00b4e6;
    font-size: 15px;
    letter-spacing: 0.5px;
  }
  
  
  /* Dispositivo mejorado (iPhone 13 aprox 390×844) */
  .device {
    --phone-w: min(390px, 85vw);
    width: var(--phone-w);
    aspect-ratio: 390 / 844;
    border: 16px solid #1a1a1a;
    border-bottom-width: 20px;
    border-top-width: 36px;
    border-radius: 44px;
    box-shadow: 
      0 30px 90px rgba(0, 0, 0, 0.6),
      0 0 0 1px rgba(255, 255, 255, 0.08) inset,
      0 0 60px rgba(255, 107, 53, 0.15);
    background: #ffffff;
    overflow: hidden;
    position: relative;
    transform-origin: center center;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.8s ease-out;
  }
  
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Notch mejorado */
  .device-notch {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 38%;
    height: 22px;
    background: #0a0a0a;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  }
  
  /* Pequeño círculo para simular cámara/sensor */
  .device-notch::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, #1a1a2e, #0a0a0a);
    border-radius: 50%;
  }
  
  .device iframe {
    width: 100%;
    height: calc(100% - 30px);
    border: 0;
    background: #fff;
    margin-top: 30px;
  }
  
  /* Indicador decorativo de estado */
  .demo-controls::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ff6b35, transparent);
    border-radius: 999px;
  }
  
  /* Ajustes responsivos */
  @media (max-width: 520px) {
    .demo-stage {
      padding: 50px 12px 30px;
    }
  
    .demo-stage::before {
      top: 12px;
      font-size: 1.1rem;
    }
    
    .demo-controls { 
      gap: 8px; 
      padding: 10px 16px;
      flex-wrap: wrap;
      justify-content: center;
    }
    
    .btn { 
      padding: 8px 14px;
      font-size: 13px;
    }
  
    .device {
      --phone-w: 90vw;
    }
  }
  
  @media (max-width: 400px) {
    .demo-stage::before {
      font-size: 1rem;
    }
  
    .btn {
      padding: 7px 12px;
      font-size: 12px;
    }
  
    .zoom-label {
      min-width: 48px;
      font-size: 14px;
    }
  }
  
  /* Efecto hover en el dispositivo */
  .device:hover {
    box-shadow: 
      0 35px 100px rgba(0, 0, 0, 0.7),
      0 0 0 1px rgba(255, 255, 255, 0.12) inset,
      0 0 80px rgba(255, 107, 53, 0.25);
  }
  
  /* Animación sutil de respiración para el brillo */
  @keyframes glow {
    0%, 100% { 
      box-shadow: 
        0 30px 90px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.08) inset,
        0 0 60px rgba(255, 107, 53, 0.15);
    }
    50% { 
      box-shadow: 
        0 30px 90px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.08) inset,
        0 0 70px rgba(255, 107, 53, 0.2);
    }
  }
  
  .device {
    animation: fadeInUp 0.8s ease-out, glow 4s ease-in-out infinite;
  }